// 封装请求
import axios from 'axios'

const instance = axios.create({
  baseURL: 'https://lianghj.top:8888/api/private/v1',
  timeout: 5000
})
instance.interceptors.request.use(config => {
  // console.log(config)
  // config.headers.Authorization = sessionStorage.getItem('token')
  config.headers = { ...config.headers, Authorization: sessionStorage.getItem('token') }
  return config
})

export { instance }
